﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="frm_SetDeptByArea.aspx.cs" Inherits="Mod_QueryFrom_frm_SetDeptByArea" %>
<%@ Register Src="../WebCustomUserControls/CuTextSelectBox.ascx" TagName="CuTextSelectBox" TagPrefix="uc1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>指定大区部门</title>
    <base target="_self"/>
    <link type="text/css" rel="stylesheet" href="../App_Css/css1.css"/>
    <script language="javascript" src="../XMLHttpRequest/xmlhttprequest.js"></script>
</head>
<body rightmargin="0" topmargin="0" bottommargin="0" leftmargin="0">
    <form id="SetDeptByArea" runat="server">
        <input type="hidden" id="hidAreaNO" runat="server" />
        <table width="460" height="330" background="../App_Images/b_27.gif" cellpadding="0" cellspacing="0" border="0" class="text">
            <tr>
                <td height="50" align="center">
                    <table width="440" height="40" cellpadding="0" cellspacing="0" border="1" bordercolor="#a1a7bb" style="border-collapse: collapse">
                        <tr>
                            <td>
                                <table width="440" height="40" cellpadding="0" cellspacing="0" border="0" class="text">
                                    <tr>
                                        <td align="right" style="width: 79px">指定部门：</td>
                                        <td style="width: 269px"> <uc1:CuTextSelectBox ID="txtDeptNo" runat="server" Width="270" ReturnTextIDs="txtDeptNo" OpenPageUrl="frm_QueryDept.aspx?From=Area&" /></td>
                                        <td><asp:Imagebutton ID="ibtnServer" runat="server" ImageUrl="../App_Images/b_29_1.gif" OnClick="ibtnServer_Click" /></td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td height="210" align="center">
                    <table width="440" height="210" cellpadding="0" cellspacing="0" border="0">
                        <tr>
                            <td align="left" valign="top">
                                <div style="overflow: auto; width: 440px; height: 210px">
                                    <table width="440" height="190" cellpadding="0" cellspacing="0" border="0">
                                        <tr>
                                            <td height="20">
                                                <table bgcolor="#CED3E2" width="440" height="20" cellpadding="0" cellspacing="0" class="text" border="1" bordercolor="#a1a7bb" style="border-collapse: collapse">
                                                    <tr>
                                                        <td align="center" style="font-weight: bold; color: #183184; width: 50px;">操 作</td>
                                                        <td align="center" style="font-weight: bold; color: #183184; width: 150px;">部门编号</td>
                                                        <td align="center" style="font-weight: bold; color: #183184;">部门名称</td>
                                                    </tr>
                                                </table>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td valign="top" style="height: 190px">
                                                <asp:DataGrid ID="dgrdQueryResult" Height="20px" runat="server" AllowPaging="True" AutoGenerateColumns="False" PageSize="8" ShowHeader="False" BorderStyle="None" BorderWidth="0px" CellPadding="0" CssClass="text">
                                                    <PagerStyle Visible="False" BorderStyle="None" BorderWidth="0px" />
                                                    <Columns>
                                                        <asp:TemplateColumn>
                                                            <ItemTemplate>
                                                                <table width="440" height="20" cellpadding="0" cellspacing="0" class="text" border="1" bordercolor="#a1a7bb" style="border-collapse: collapse">
                                                                    <tr onfocusin="this.bgColor='#D3E2D7'" onfocusout="this.bgColor=''">
                                                                        <td width="50" align="center"><asp:imagebutton ID="ibtnDelete" runat="server" ToolTip="作废" ImageUrl="../App_Images/b_55.gif" OnClick="DeleteDeptByArea" CommandName='<%# DataBinder.Eval(Container.DataItem, "id")%>' OnClientClick="return confirm('您真的要作废此项吗？');"/></td>
                                                                        <td width="150"><asp:textbox ID="txt0" Text='<%# DataBinder.Eval(Container.DataItem, "area_name")%>' runat="server" BackColor="transparent" CssClass="text" BorderWidth="0" style="cursor:default" ReadOnly="true" Width="140" /></td>
                                                                        <td><asp:textbox ID="txt1" Text='<%# DataBinder.Eval(Container.DataItem, "dept_name")%>' runat="server" BackColor="transparent" CssClass="text" BorderWidth="0" style="cursor:default" ReadOnly="true" Width="150" /></td>
                                                                    </tr>
                                                                </table>
                                                            </ItemTemplate>
                                                        </asp:TemplateColumn>
                                                    </Columns>
                                                    <AlternatingItemStyle BackColor="#EEEFF2" />
                                                </asp:DataGrid>
                                                &nbsp;
                                            </td>
                                        </tr>
                                    </table>
                                </div>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td height="20" align="right" valign="top">
                    <asp:Label ID="lblQueryRsCounts" runat="server" CssClass="text"/><asp:Label ID="lblQueryPageCounts" runat="server" CssClass="text"/>
                    <asp:Label ID="lblQueryCurrPage" runat="server" CssClass="text"/>&nbsp;&nbsp;
                    <asp:linkbutton ID="lbtnQueryFirst" runat="server" CssClass="text" Text="首  页" OnClick="ChangPage" CommandName="0" />
                    <asp:linkbutton ID="lbtnQueryPrev" runat="server" CssClass="text" Text="上一页" OnClick="ChangPage" CommandName="1" />
                    <asp:linkbutton ID="lbtnQueryNext" runat="server" CssClass="text" Text="下一页" OnClick="ChangPage" CommandName="2" />
                    <asp:linkbutton ID="lbtnQueryEnd" runat="server" CssClass="text" Text="尾  页" OnClick="ChangPage" CommandName="3" />&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;
                </td>
            </tr>
            <tr>
                <td height="40" align="center" valign="top">
                    <table background="../App_Images/b_12.gif" width="452" height="35" cellpadding="0" cellspacing="0" style="border-collapse: collapse; border-top: #a1a7bb 1px solid;">
                        <tr>
                            <td align="center" style="width: 130px"><asp:ImageButton ID="ibtnRef" ImageUrl="../App_Images/b_28_1.gif" runat="server" OnClick="ibtnRef_Click" /></td>
                            <td style="width: 225px">&nbsp;</td>
                            <td align="center"><img style="cursor:hand" src="../App_Images/b_30_1.gif" onclick="window.close();"></td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
        <asp:label ID="lblJs" runat="server"/>
    </form>
</body>
</html>